package com.app.biz.mapper;

import java.util.List;
import com.app.biz.domain.BizSocialElectricityConsumption;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
 * 全社会用电量Mapper接口
 * 
 * @author Zhou_S
 * @date 2023-12-28
 */
public interface BizSocialElectricityConsumptionMapper 
{
    /**
     * 查询全社会用电量
     * 
     * @param baseId 全社会用电量主键
     * @return 全社会用电量
     */
    public BizSocialElectricityConsumption selectBizSocialElectricityConsumptionByBaseId(String baseId);

    /**
     * 查询全社会用电量列表
     * 
     * @param bizSocialElectricityConsumption 全社会用电量
     * @return 全社会用电量集合
     */
    public List<BizSocialElectricityConsumption> selectBizSocialElectricityConsumptionList(BizSocialElectricityConsumption bizSocialElectricityConsumption);

    /**
     * 新增全社会用电量
     * 
     * @param bizSocialElectricityConsumption 全社会用电量
     * @return 结果
     */
    public int insertBizSocialElectricityConsumption(BizSocialElectricityConsumption bizSocialElectricityConsumption);

    /**
     * 修改全社会用电量
     * 
     * @param bizSocialElectricityConsumption 全社会用电量
     * @return 结果
     */
    public int updateBizSocialElectricityConsumption(BizSocialElectricityConsumption bizSocialElectricityConsumption);

    /**
     * 删除全社会用电量
     * 
     * @param baseId 全社会用电量主键
     * @return 结果
     */
    public int deleteBizSocialElectricityConsumptionByBaseId(String baseId);

    /**
     * 批量删除全社会用电量
     * 
     * @param baseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBizSocialElectricityConsumptionByBaseIds(String[] baseIds);

    List<String> getUniqueDatesFromDatabase();

    /**
     * <p>
     *     清空所有的全社会用电量数据
     * </p>
     * @return
     */
    @Delete("DELETE FROM biz_social_electricity_consumption")
    int clearAllTableData();

    List<BizSocialElectricityConsumption> selectBizSocialElectricityConsumptionAllData();

}
